package com.yypinger.gxonline.entities;

import java.util.Date;

import com.vaadin.ui.TextField;
import com.yypinger.common.vaadin.annotations.VaadinForm;
import com.yypinger.common.vaadin.annotations.VaadinUIField;

/**
 * 会员用户
 * @author qinfuji
 *
 */
@VaadinForm()
public class User extends DataBase{
	
	/**
	 * 会员折扣
	 */
	private Double discount;
	
	/**
	 * 会员编号，全系统唯一
	 */
	private String userId;
	
	/**
	 * 会员姓名
	 */
	private String name;
	
	/**
	 * 联系电话
	 */
	private String phone;
	
	/**
	 * 积分
	 */
	private Integer point;
	
	/**
	 * 注册时间
	 */
	private Date createDate;
	
	/**
	 * 消费总金额
	 */
	private Double customAmount;
	
	/**
	 * 理赔金额
	 */
	private Double claimsAmunt;
	
	/**
	 * 消费次数
	 */
	private Integer customCount;

	/**
	 * 用户余额
	 */
	private Double balance;
	
	/**
	 * 会员级别
	 */
	private Integer level;

	public Double getDiscount() {
		return discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@VaadinUIField(type=TextField.class , caption="用户名",width="40px")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getPoint() {
		return point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Double getCustomAmount() {
		return customAmount;
	}

	public void setCustomAmount(Double customAmount) {
		this.customAmount = customAmount;
	}

	public Double getClaimsAmunt() {
		return claimsAmunt;
	}

	public void setClaimsAmunt(Double claimsAmunt) {
		this.claimsAmunt = claimsAmunt;
	}

	public Integer getCustomCount() {
		return customCount;
	}

	public void setCustomCount(Integer customCount) {
		this.customCount = customCount;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
}
